import axios from 'axios'
import router from '../../router'

axios.defaults.baseURL =  'http://localhost:8080/'
axios.defaults.withCredentials = true

axios.interceptors.response.use(function (response) {
  // 对响应数据做点什么
  console.log(response)
  return response;
}, function (error) {
  // 对响应错误做点什么
  return Promise.reject(error);
});
